package com.example.smartf.service;

import com.example.smartf.model.mysql.Formulainfo;
import com.example.smartf.model.mysql.Traindata;
import org.apache.poi.ss.usermodel.Workbook;

import java.util.List;

public interface TraindataService {

    List<Traindata> showdeviceTraindata(String deviceID);

    String updatedeviceCgr(String deviceID, Integer day, Double cgr);

    void startTrain(String username,String deviceID, List<Integer> days);

    String upLoadExcel(Workbook workbook, String filename) throws Exception;

    List<Formulainfo> showFormulas(String type);

    void applyFormula(String type,String formula);

    String delFormula(Integer id);
}
